package com.iwhalecloud.bss.kite.cucc.client.dto.goods;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

@ApiModel("属性DTO")
public class AttrDTO {
    @ApiModelProperty(value = "商品标识,多个以逗号分隔")
    private String goodsSku;
    @ApiModelProperty(value = "属性编码")
    private String attrCode;
    @ApiModelProperty(value = "属性名称")
    private String attrName;
    @ApiModelProperty(value = "是否为关键属性")
    private boolean keyAttr;
    @ApiModelProperty(value = "默认属性值编码")
    private String defaultAttrValCodes;
    @ApiModelProperty(value = "所在属性组的名称")
    private String group;
    @ApiModelProperty(value = "所在属性组的编码")
    private String groupId;
    @ApiModelProperty(value = "属性类型 INPUT为文本框属性，OPTIONS为下拉框属性")
    private String valueType;
    @ApiModelProperty(value = "属性值内容")
    private String attrValCodes;
    @ApiModelProperty(value = "下拉框的多个属性值列表 下拉框时必填")
    private List<AttrValuesDTO> attrValues;

    @ApiModelProperty("关键属性联动规则")
    private LinkRule linkRules;

//    @ApiModelProperty(value = "下拉框的多个属性值列表 A控制B是否展示")
//    private List<showRulesDTO> showRules;

    public String getAttrCode() {
        return attrCode;
    }
    public void setAttrCode(String attrCode) {
        this.attrCode = attrCode;
    }
    public String getAttrName() {
        return attrName;
    }
    public void setAttrName(String attrName) {
        this.attrName = attrName;
    }
    public boolean isKeyAttr() {
        return keyAttr;
    }
    public void setKeyAttr(boolean keyAttr) {
        this.keyAttr = keyAttr;
    }
    public String getDefaultAttrValCodes() {
        return defaultAttrValCodes;
    }
    public void setDefaultAttrValCodes(String defaultAttrValCodes) {
        this.defaultAttrValCodes = defaultAttrValCodes;
    }
    public String getGroup() {
        return group;
    }
    public void setGroup(String group) {
        this.group = group;
    }
    public String getGroupId() {
        return groupId;
    }
    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }
    public String getValueType() {
        return valueType;
    }
    public void setValueType(String valueType) {
        this.valueType = valueType;
    }
    public String getAttrValCodes() {
        return attrValCodes;
    }
    public void setAttrValCodes(String attrValCodes) {
        this.attrValCodes = attrValCodes;
    }
    public List<AttrValuesDTO> getAttrValues() {
        return attrValues;
    }
    public void setAttrValues(List<AttrValuesDTO> attrValues) {
        this.attrValues = attrValues;
    }

    public String getGoodsSku() {
        return goodsSku;
    }

    public void setGoodsSku(String goodsSku) {
        this.goodsSku = goodsSku;
    }

    public LinkRule getLinkRules() {
        return linkRules;
    }

    public void setLinkRules(LinkRule linkRules) {
        this.linkRules = linkRules;
    }

//    public List<showRulesDTO> getShowRules() {
//        return showRules;
//    }
//    public void setShowRules(List<showRulesDTO> showRules) {
//        this.showRules = showRules;
//    }
}
